package com.bootdo.fx.service;

import com.bootdo.common.domain.Tree;
import com.bootdo.fx.domain.GoodsCategoryDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author 袁飞龙
 * @email 1992lcg@163.com
 * @date 2017-11-30 17:12:20
 */
public interface GoodsCategoryService {
	
	GoodsCategoryDO get(Long categoryId);
	
	List<GoodsCategoryDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsCategoryDO goodsCategory);
	
	int update(GoodsCategoryDO goodsCategory);
	
	int remove(Long categoryId);
	
	int batchRemove(Long[] categoryIds);

	/**
	 * 获取分类书
	 * @return
	 */
    Tree<GoodsCategoryDO> getTree();
}
